from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView

urlpatterns = [
    path('', views.movie_list, name='movie_list'),
    path('<int:movie_id>/', views.movie_detail, name='movie_detail'),
    path('<int:movie_id>/rate/', views.rate_movie, name='rate_movie'),
    path('profile/', views.user_profile, name='user_profile'),
    path('ratings/', views.user_ratings, name='user_ratings'),
    path('ratings/<int:rating_id>/delete/', views.delete_rating, name='delete_rating'),
    path('recommendations/', views.user_recommendations, name='user_recommendations'),
    path('api/user-stats/', views.api_user_stats, name='api_user_stats'),
    path('api/recommended-movies/', views.api_recommended_movies, name='api_recommended_movies'),
    path('api/ai-recommendations/', views.ai_personalized_recommendations, name='ai_recommendations'),
    path('api/ai-mood-recommendations/', views.ai_mood_recommendations, name='ai_mood_recommendations'),
    path('api/ai-movie-analysis/<int:movie_id>/', views.ai_movie_analysis, name='ai_movie_analysis'),
    path('api/ai-similar-movies/', views.ai_similar_movies, name='ai_similar_movies'),
    path('api/chatbot/', views.chatbot_response, name='chatbot_response'),
    path('chatbot/', TemplateView.as_view(template_name='movies/chatbot.html'), name='chatbot'),
    path('mood-recommendations/', TemplateView.as_view(template_name='movies/mood_recommendations.html'), name='mood_recommendations'),
] 